package dissertation.examples.ejb21.entity;

import java.io.Serializable;

public class ProductPK implements Serializable {
    public String productId;

    public ProductPK() {
    }

    public ProductPK(String productId) {
        this.productId = productId;
    }

    @Override
    public boolean equals(Object o) {
        return o instanceof ProductPK && productId.equals(((ProductPK) o).productId);
    }

    @Override
    public int hashCode() {
        return productId.hashCode();
    }
}
